package com.cqfae.deploycentral.app.web.vo;

import com.cqfae.deploycentral.app.dao.entity.FileSync;

import java.io.Serializable;

/**
 * Created by JIANGLU009 on 2017/11/6.
 */
public class FileSyncFileVo implements Serializable {

    private String fileId;

    private String fileName;

    private String fileType;

    public FileSyncFileVo() {
        super();
    }

    public FileSyncFileVo(FileSync model) {
        setFileName(model.getName());
        setFileType(model.getType());
        setFileId(model.getName());
    }

    public FileSync parseModel() {
        FileSync info = new FileSync();
        info.setName(getFileName());
        info.setType(getFileType());
        return info;
    }

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }
}
